#ifndef MONITORINGMAIN_H
#define MONITORINGMAIN_H

#include <QWidget>
#include "MonitoringTool.h"
#include "MonitiringUserMsg.h"
#include "MonitoringDeviceAdd.h"
#include "MonitoringDeviceDelete.h"
#include "MonitoringHistoryData.h"
#include "MonitoringWarnRecode.h"
#include "DeviceGroup.h"
#include "monitoringSystemLog.h"
#include "userModel.h"
#include "MonitoringUserSqlite.h"
#include <QTimer>
#include <QJsonObject>
#include "SnaillTcpClient.h"
namespace Ui {
class MonitoringMain;
}

class MonitoringMain : public QWidget
{
    Q_OBJECT

public:
    explicit MonitoringMain(QWidget *parent = nullptr,const QString&username = QString());
    ~MonitoringMain();
public slots:
    void handleDataReceived(const QByteArray &);
private:
    Ui::MonitoringMain *ui;
    MonitiringUserMsg*p_msg;
    MonitoringDeviceAdd*p_add;
    MonitoringDeviceDelete*p_delete;
    MonitoringHistoryData*p_history;
    MonitoringWarnRecode*p_warnRecode;
    monitoringSystemLog*p_log;
    DeviceGroup*p_group;
    QString username;
    userModel*p_model;
    MonitoringUserSqlite&userSqlite;
    QTimer *timer;
};

#endif // MONITORINGMAIN_H
